package Views;

/**
 * A view of login user
 * @author Josh
 */
public class ViewLoginUserReal extends ViewLoginInt {
    
    public void setModelData() {
        model.setUsername(getUserField());
        model.setPassword(getPasswordField());
    }

    public void updateFailure() {
        resetDataFields();
        ViewMain.getInstance().updateMsg("Username and Password doesn't match.");
    }
    
    public void updateSuccess() {
        resetDataFields();
        ViewMain.getInstance().updateMsg("You've logged in Successfully.");
        ViewMain.getInstance().updateLoginUser();
    }

}
